import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:hc_bot_pro/common/service/channel/channel.dart';

import '../routes.dart';

class QrPanel extends StatelessWidget {
  const QrPanel({super.key});

  @override
  Widget build(BuildContext context) {
    final channelID = "wgjt20250938912162";
    final url =
        "https://www.hcxlyun.cn/xm-examine/weixin/generateMiniQRCodeNew?channelId=${channelID}&miniType=3";
    return GestureDetector(
      onDoubleTap: () {
        Get.toNamed(Routes.kSetting);
      },
      child: Container(
        alignment: Alignment.bottomCenter,
        width: 125.w,
        padding: EdgeInsets.only(bottom: 15.h),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.end,
          children: [ClipOval(child: CachedNetworkImage(imageUrl: url))],
        ),
      ),
    );
  }
}
